package dao;

import domain.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface GoodsDao {

    Goods selectById(int id);

    int insert(Goods goods);

    int update(Goods goods);

    int delete(int id);

    List<Goods> selectAll();

    int updateNum(@Param("goodsID") Integer goodsID, @Param("number") int number);

    int isExistById(int id);

    int countGoods();
    HashMap findMostSaleGood();
}
